import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from "axios";
import VueAxios from "vue-axios";
// 注册全局的过滤器
import './utils/filters/filters'
// 引入vue-cookies。
import VueCookies from 'vue-cookies'

Vue.use(VueCookies)


import {
	Icon,
	Swipe,
	SwipeItem,
	AddressEdit,
	Grid,
	GridItem,
	Form,
	Tab, Tabs,
	Tag,
	AddressList,
	Checkbox, CheckboxGroup,
	Tabbar,
	SubmitBar,
	TabbarItem,
	NavBar,
	GoodsAction,
	GoodsActionIcon,
	GoodsActionButton,
	Sku,
	Divider,
	Stepper,
	Field,
	Button,
	Popup,
	Search,
	Empty,
	Cell,
	Overlay,
	Uploader,
	CellGroup,
	ActionSheet
} from 'vant';
import {Image as VanImage} from 'vant';


Vue.use(Icon).use(Swipe).use(SwipeItem).use(Grid).use(GridItem).use(Empty).use(Cell)
	.use(VanImage).use(Tag).use(Tab).use(Tabs)
	.use(SubmitBar).use(AddressList).use(Form)
	.use(Sku).use(Divider).use(Popup).use(Search).use(CellGroup)
	.use(Overlay).use(Uploader).use(ActionSheet).use(AddressEdit).use(Checkbox).use(CheckboxGroup)
	.use(Tabbar).use(TabbarItem).use(NavBar).use(Stepper).use(Field).use(Button)
	.use(GoodsActionIcon).use(GoodsActionButton).use(GoodsAction);


Vue.use(VueAxios, axios);
// 将请求路径和appkey存放在原型属性里
Vue.prototype.baseURL = "http://www.kangliuyong.com:10002";
Vue.prototype.appkey = "U2FsdGVkX19WSQ59Cg+Fj9jNZPxRC5y0xB1iV06BeNA=";

Vue.config.productionTip = false

new Vue({
	router, store, render: h => h(App)
}).$mount('#app')
